package com.example.basic.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {

    public static void main(String[] args) {
        String str = new String("asdasdasdas[das");
        System.out.println(str);
        System.out.println(isContainsSpecialChar(str));
        System.out.println(str);
    }

    private static boolean isContainsSpecialChar(String str) {
        String regEx = "[/\\\\:*?<>|]";
        Pattern p = Pattern.compile(regEx);
        Matcher m = p.matcher(str);
        str = new String("11111");
        return m.find();
    }

}
